package com.sumer.brain.business.model.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sumer.brain.common.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Schema(name = "School", description = "学校实体")
@TableName(value = "school")
@Data
public class School extends BaseEntity{

    @TableId(type = IdType.AUTO)
    @ExcelProperty("学校id")
    private Long schoolId;

    @ExcelProperty("学校名称")
    private String schoolName;

    @ExcelProperty("学校简介")
    private String schoolSummary;

    @ExcelProperty("学校封面图，多张用“,”分割")
    private String schoolUrl;

}
